import {withRouter,RouteComponentProps} from 'react-router'
import React, { Component } from 'react'

const Logined = ({history}:RouteComponentProps)=> {
    // addList=()=>{
    //     //this.props.history.push('/changepassword')
    //    history.push('/home')
    // }
    
        return (
            <div className="logined">
                <p>已登录</p>
                <div className="box">
                    <img src="http://pic1.zhimg.com/50/v2-ede9473ddcbd84fe7c1e363953ed7410_hd.jpg" alt=""/>
                </div>
                <div className="add" onClick={()=>{
                   history.push('/changepassword')
                }}>
                    <h1>添加投票</h1>
                </div>
            </div>
        )
    
}

export default withRouter(Logined)
